package GradeCalculation;

import java.util.List;

/**
 * @Author maojiangyue
 * @Date 2025/10/18
 * @Description 计算各种分数
 */
public class CalculateGrades {
    public static void main(String[] args) {
        GradeCounter gradeCounter = new GradeCounter();
        List<Double> score = List.of(90.0, 80.0, 91.0, 88.0, 96.0);
        //没有设置计算方式的情况下
        gradeCounter.show(score);
        //唱歌比赛
        gradeCounter.setGradeCounter(new SingingCompetition());
        gradeCounter.show(score);
        //学科成绩
        gradeCounter.setGradeCounter(new SubjectGrades());
        gradeCounter.show(score);
        //学生成绩
        gradeCounter.setGradeCounter(new
                StudentGrades(0.25,0.4,
                0.25,0.05,0.05));
        gradeCounter.show(score);
    }
}
